<?
if(!ACCESS && !PARAMS) common::accessdenied();
if(PARAMS) $data->account->confirm = account::confirm(PARAMS);
switch ($data->account->confirm){ 
	case 200:
	$data->TITLE = _('Congratulations');
	$data->DESCRIPTION = _('Your account has been confirmed succesfully.');
	break;
	case 400:
	$data->TITLE = _('Already confirmed');
	$data->DESCRIPTION = _('This account has already been confirmed.');
	break;
	case 600:
	$data->TITLE = _('Wrong confirmation code');
	$data->DESCRIPTION = _('The confirmation code is incorrect.');
	break;
}
?>